<h2>Il mio account</h2>
<?php if ($this->identity == NULL): ?>
<a href="/cms/user/login">Login</a>
<?php else: ?>
<p><a href="/cms/user/update/id/<?php echo $this->identity->userId; ?>">Edit Account</a></p>
<p>Ciao <?php echo $this->identity->userNome ?> | <a href="/cms/user/logout">Logout</a></p>
<?php endif; ?>
<?php if (Zend_Auth::getInstance()->hasIdentity()): ?>
    <?php if (Zend_Auth::getInstance()->getIdentity()->userRole == "admin"): ?>
        <a class="button" href="/admin/create-evento">Nuovo Evento</a>
        <br />
        <br />
    <?php endif; ?>
<?php endif; ?>